﻿@model IEnumerable<GameSchoolApplication.Models.Course>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            name
        </th>
        <th>
            courseDesc
        </th>
        <th>
            noYear
        </th>
        <th>
            noSemester
        </th>
        <th>
            Edit
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @item.name
        </td>
        <td>
            @item.courseDesc
        </td>
        <td>
            @item.noYear
        </td>
        <td>
            @item.noSemester
        </td>
        <td>
            @Html.ActionLink("Breyta", "editCourse", "Course", new { courseID = @item.cID }, null)
        </td>
    </tr>
}

</table>

